package com.socket.netty;


/**
 * Created by kaddddd on 2017/7/3 0003.
 */
public class LenghUtil {
    //头标识
    public static int HEARDER_FLAG_LENGTH = 2;
    //数据头
    public static int MSG_LENGTH = 4;
    public static int MSG_SN_LENGTH = 4;
    public static int MSG_ID_LENGTH = 2;
    public static int MSG_GNSSCENTERID_LENGTH = 4;
    public static int VERSION_FLAG_LENGTH = 1;
    public static int ENCRYPT_FLAG_LENGTH = 1;
    public static int ENCRYPT_KEY_LENGTH = 4;

    //登录请求信息
    public static int USERID_LENGTH = 4;
    public static int PASSWORD_LENGTH = 8;
    public static int DOWN_LINK_IP_LENGTH = 32;
    public static int DOWN_LINK_PORT_LENGTH = 2;

    //定位信息数据体
    public static int VEHICLE_NO_LENGTH = 21;
    public static int VEHICLE_COLOR_LENGTH = 1;
    public static int DATA_TYPE = 2;
    public static int DATA_LENGTH = 4;

    public static int ENCRYPT_LENGTH = 1;
    public static int DATE_LENGTH = 4;
    public static int TIME_LENGTH = 3;
    public static int LON_LENGTH = 4;
    public static int LAT_LENGTH = 4;
    public static int VEC1_LENGTH = 2;
    public static int VEC2_LENGTH = 2;
    public static int VEC3_LENGTH = 4;
    public static int DIRECTION_LENGTH = 4;
    public static int ALTITUDE_LENGTH = 4;
    public static int STATE_LENGTH = 4;
    public static int ALARM_LENGTH = 4;
    //CRC校验码
    public static int CRC_CODE_LENGTH = 2;
    //尾标识
    public static int END_FLAG_LENGTH = 4;
}
